package org.dean.webapps.projectname.utils;

/**
 * Created by IntelliJ IDEA.
 * User: dean
 * Date: 8/23/11
 * Time: 3:49 PM
 * To change this template use File | Settings | File Templates.
 */
public class CookieUtils {

    public static javax.servlet.http.Cookie convert2JavaxCookie(org.apache.http.cookie.Cookie apacheCookie) {
        javax.servlet.http.Cookie javaxCookie = new javax.servlet.http.Cookie(apacheCookie.getName(), apacheCookie.getValue());
        javaxCookie.setDomain(apacheCookie.getDomain());
        javaxCookie.setPath(apacheCookie.getPath());
        javaxCookie.setVersion(apacheCookie.getVersion());
        javaxCookie.setComment(apacheCookie.getComment());
        return javaxCookie;
    }
}
